Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+Cleanup of framework module use and wrapping #1280

Merged
merged 7 commits into from
Jan 4, 2021

Conversation

Hallberg-NOAA
Copy link
Collaborator

This PR cleans up or eliminates module use statements related to the framework
code and makes minor changes the framework code to localize the dependencies on
the FMS framework into fewer files. This should be helpful for scoping out an
appropriate and limited set of changes for the migration to use FMS2, and all of
these are no-regrets changes that will not alter answers or output. The list of
commits in this PR include:

  Removed unused module use statements in various modules, to help eliminate
apparent but inaccurate module dependencies, and to facilitate the migration
to FMS2.  All answers are bitwise identical.
  Use MOM framework interfaces in MOM_open_boundary in place of direct calls to
mpp routines, to facilitate the migration to FMS2.  All answers are bitwise
identical.
  Use MOM_read_data in place of read_data in RGC_initialization to match the
routines used in other modules and facilitate migration to FMS2.  All answers
are bitwise identical.
  Expanded the SZI_ and SZJ_ macros in random_2d_ routines to eliminate any
dependence on MOM_memory.h and facilitate the future compilation of MOM_random
as a part of a MOM framework library.  All answers are bitwise identical.
  Added the new routine read_field_chksum to MOM_io.F90, so that all calls to
the FMS i/o layer can be directed via MOM_io.F90, in order to facilitate the
painless and compartmentalized migration to FMS2.  Also added a 0-d variant for
MOM_read_data, and standardized the control-flag and subroutine aliases used in
MOM_io.F90.  All answers are bitwise identical, but there are new public
interfaces.
  Use read_field_chksum and MOM_read_data in MOM_restart.  Also internally
renamed mpp_chksum to just chksum in MOM_restart to aid in identifying
unfiltered dependencies on FMS in MOM_restart.F90.  All answers are bitwise
identical.
@codecov-io
Copy link

Codecov Report

Merging #1280 (aea16f7) into dev/gfdl (353cc63) will decrease coverage by 0.00%.
The diff coverage is 18.51%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl    #1280      +/-   ##
============================================
- Coverage     45.88%   45.88%   -0.01%     
============================================
  Files           225      225              
  Lines         71422    71428       +6     
============================================
- Hits          32774    32772       -2     
- Misses        38648    38656       +8     
Impacted Files Coverage Δ
src/core/MOM_dynamics_split_RK2.F90 88.94% <ø> (ø)
src/core/MOM_dynamics_unsplit.F90 91.76% <ø> (ø)
src/core/MOM_dynamics_unsplit_RK2.F90 92.71% <ø> (ø)
src/framework/MOM_diag_remap.F90 92.89% <ø> (ø)
src/framework/MOM_horizontal_regridding.F90 56.19% <ø> (ø)
src/framework/MOM_random.F90 87.50% <ø> (ø)
src/framework/MOM_transform_FMS.F90 40.93% <ø> (ø)
...nitialization/MOM_tracer_initialization_from_Z.F90 0.00% <ø> (ø)
src/tracer/advection_test_tracer.F90 0.00% <ø> (ø)
src/tracer/boundary_impulse_tracer.F90 0.00% <ø> (ø)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 353cc63...aea16f7. Read the comment docs.

Copy link
Collaborator

@adcroft adcroft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adcroft adcroft merged commit d819ccf into mom-ocean:dev/gfdl Jan 4, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the module_use_cleanup branch July 30, 2021 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants